module.exports = {
  "presets": [
    "@babel/react",
    [
      "@babel/env",
      {
        "modules": false,
        "loose": true,
        "targets": {
          "browsers": [
            ">2%"
          ]
        }
      }
    ]
  ],
  plugins: [
    [
      "@babel/plugin-proposal-decorators",
      {
        "legacy": true
      }
    ],
    [
      "@babel/plugin-proposal-class-properties",
      {
        "loose": true
      }
    ],
    // [
    //   '@babel/plugin-transform-react-jsx',
    //   {
    //     runtime: 'automatic',
    //   },
    // ],
    [
      '@babel/plugin-transform-runtime',
      {
        helpers: false,
        regenerator: true,
      },
    ],
    '@babel/plugin-proposal-object-rest-spread',
  ],
}